package com.bida.mapper;

import com.bida.domain.po.DishFlavor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 菜品口味关系表 Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2024-09-06
 */
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {
    /**
     * 根据菜品id查询对应的口味数据
     * @param dishId
     * @return
     */
    @Select("select * from dish_flavor where dish_id = #{dishId}")
    List<DishFlavor> getByDishId(Long dishId);
}
